﻿@model NCLCustomerManagement.UI.Models.ProductCategory.ProductModel

<div class="form-group">
    @Html.LabelFor(model => model.ProductName, new { @class = "col-xs-2 control-label" })
    <div class="col-xs-10">
        @Html.HiddenFor(model => model.Id)
        @Html.TextBoxFor(model => model.ProductName, new { @class = "form-control", placeholder = "Nhập tên sản phẩm" })
    </div>
</div>
<div class="form-group">
    @Html.LabelFor(model => model.ProductCategoryName, new { @class = "col-xs-2 control-label" })
    <div class="col-xs-10">
        @Html.DropDownList("CategorySelectList", null, new { @class = "form-control", placeholder = "Nhập tên sản phẩm" })
    </div>
</div>
<div class="form-group">
    @Html.LabelFor(model => model.Madein, new { @class = "col-xs-2 control-label" })
    <div class="col-xs-10">
        @Html.TextBoxFor(model => model.Madein, new { @class = "form-control", placeholder = "Xuất xứ" })
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.CurrentSaleUnitPrice, new { @class = "col-xs-2 control-label" })
    <div class="col-xs-10">
        @Html.TextBox("CurrentSaleUnitPrice", Model == null ? "0" : Model.CurrentSaleUnitPrice.ToString("#,##0.00"), new { @class = "form-control", placeholder = "Giá bán" })
    </div>
</div>
<div class="form-group">
    @Html.LabelFor(model => model.PrimaryUnit, new { @class = "col-xs-2 control-label" })
    <div class="col-xs-3">
        @Html.TextBoxFor(model => model.PrimaryUnit, new { @class = "form-control", placeholder = "Đơn vị tính" })
    </div>
    <label class="col-xs-1 control-label" for="QuantityPerUnit">chứa</label>
    <div class="col-xs-3">
        @Html.TextBoxFor(model => model.QuantityPerUnit, new { @class = "form-control", placeholder = "số lượng" })
    </div>

    <div class="col-xs-3">
        @Html.TextBoxFor(model => model.SecondaryUnit, new { @class = "form-control", placeholder = "số lượng/thể tích/khối lượng..." })
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.UsedPerDay, new { @class = "col-xs-2 control-label" })
    <div class="col-xs-10">
        @Html.TextBoxFor(model => model.UsedPerDay, new { @class = "form-control", placeholder = "Liều dùng/ngày" })
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Description, new { @class = "col-xs-2 control-label" })
    <div class="col-xs-10">
        @Html.TextAreaFor(model => model.Description, new { @class = "form-control", placeholder = "Mô tả" })
    </div>
</div>

<div class="form-group">
    <div class="col-sm-offset-2 col-xs-10">
        <div class="checkbox">
            <label>
                @Html.CheckBoxFor(model => model.Available)
                Còn hàng

            </label>
        </div>
    </div>
</div>

<div class="form-group">
    <label class="col-xs-2 control-label" for="UploadImage">Chọn hình ảnh</label>
    <div class="col-xs-10">

        <input type="file" name="UploadImage" class="form-control" />
        @Html.ValidationSummary(true)
    </div>
</div>
